use volo_gen::wmplatform3;

#[volo::main]
async fn main() {
    println!(
        "update_license {:#?}",
        web::services::LICENSECLIENT
            .update_license(wmplatform3::UpdateLicenseReq {
                data: Some(wmplatform3::License {
                    ts: 0,
                    mac: "".into(),
                    user_count: 0,
                    expire_ts: 0,
                    save_ts: 0,
                    create_ts: 0,
                    temporary: 0,
                    authorization: 0,
                    day: 0,
                    version: 0,
                    update_time: 0,
                }),
            })
            .await
    );

    println!(
        "query_device {:#?}",
        web::services::VERIFYCLIENT
            .query_device(wmplatform3::QueryDeviceReq {
                appid: "".into(),
                authid: "".into(),
                device_ids: vec![],
                ip: "".into(),
                sn: "".into(),
            })
            .await
    );

    println!(
        "save_device {:#?}",
        web::services::VERIFYCLIENT
            .save_device(wmplatform3::SaveDeviceReq {
                appid: "".into(),
                ip: "".into(),
                devices: vec![wmplatform3::Device {
                    appid: "".into(),
                    custom_data: "".into(),
                    device_id: "".into(),
                    enabled: 0,
                    id: "".into(),
                    ip: "".into(),
                    mac: "".into(),
                    sn: "".into(),
                    status: 0,
                }],
            })
            .await
    );

    println!(
        "delete_device {:#?}",
        web::services::VERIFYCLIENT
            .delete_device(wmplatform3::DeleteDeviceReq {
                appid: "".into(),
                authid: "".into(),
                device_ids: vec![],
                sn: "".into(),
            })
            .await
    );

    println!(
        "net_point_init {:#?}",
        web::services::VERIFYCLIENT
            .net_point_init(wmplatform3::NetPointInitReq {
                np: Some(wmplatform3::NetPoint {
                    id: 0,
                    appid: "".into(),
                    device_id: "".into(),
                    ip: "".into(),
                    mac: "".into(),
                    name: "".into(),
                    last_time: 0,
                    enabled: 0,
                }),
            })
            .await
    );

    println!(
        "net_point_attend {:#?}",
        web::services::VERIFYCLIENT
            .net_point_attend(wmplatform3::NetPointAttendReq {
                device_id: "".into(),
                at: Some(wmplatform3::Attend {
                    appid: "".into(),
                    finger_loc: 0,
                    id: 0,
                    ip: "".into(),
                    net_point_id: 0,
                    time: 0,
                    r#type: 0,
                    username: "".into(),
                }),
            })
            .await
    );
}
